package com.jusda.nacosservice.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author:y022 29/07/2022 21:35
 * @description:
 */
@Data
@Configuration
public class NacosConfig {

    @Value("${yiyi.name}")
    private String nacosCode;

    public void setNacosCode(String nacosCode) {
        this.nacosCode = nacosCode;
    }

    public String getNacosCode() {
        return nacosCode;
    }

    public NacosConfig(String nacosCode) {
        this.nacosCode = nacosCode;
    }

    public NacosConfig() {
    }
}
